{admin title="Edit Role"}
	<form action="/role/edit" method="post">
		<p>
			<input type="hidden" name="id" value="{$role.id}" />

		    <label for="shortname">Role Shortname</label>
		    <input type="text" name="shortname" value="{$role.shortname}"/>

		    <label for="description">Description</label>
		    <input type="text" name="description" value="{$role.description}"/>

		    <label for="inherits_id">Inherits</label>
			{html_options name='inherits_id' options=$role_choices selected=$role.inherits_id}
		</p>
		<h3>Role Options</h3>
		<ul class="checkboxlist">
			{if $role.isadmin eq 0}
				<li>
					<input type="checkbox" value="1" name="isguest" id="isguest"{if $role.isguest eq 1} checked="checked"{/if}/>
					<label for="isguest">Guest</label>
				</li>
			{/if}
			{if $role.isguest eq 0}
				<li>
					<input type="checkbox" value="1" name="isadmin" id="isadmin"{if $role.isadmin eq 1} checked="checked"{/if}/>
					<label for="isadmin">Admin</label>
				</li>
			{/if}
			<li>
				<input type="checkbox" value="1" name="isdefault" id="isdefault"{if $role.isdefault eq 1} checked="checked"{/if}/>
				<label for="isadmin">Default</label>
			</li>	
		</ul>
		<p class="clearfix"><input type="submit" class="button save" value="Save"/></p>
	</form>
{/admin}
